extends "../yanzhan-1/yanzhan-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	attInfox.atk += 25
	addSkill("对血量低于30%的敌人造成炮击伤害时，将其秒杀(若目标为高级塞壬，则15%)", "斩杀")

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	var p = 0.3
	if atkInfo.hitCha.type == sys.CharaClass.BOSS:p = 0.15
	if atkInfo.atkType == sys.AtkType.GUN and atkInfo.hitCha.att.hp/atkInfo.hitCha.att.maxHp <= p:
		atkInfo.virtual = true
		utils.createSkillTextEff("斩杀", masCha.position)
		increDmgNum(atkInfo.hitCha.att.hp, "斩杀", atkInfo.hitCha)		
		atkInfo.hitCha.forceHurtSelf(atkInfo.hitCha.att.maxHp)
		call("_onKillChara", atkInfo)

